package com.jeegit.springboot.sitemesh3.filter;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

/**
 * java 方式配置sitemesh3
 * @author 长春叭哥
 */
public class SitemeshFilter extends ConfigurableSiteMeshFilter {

    @Override
    protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
        builder .addDecoratorPath("/**", "/layouts/default")
        .addExcludedPath("/login")
        .addExcludedPath("/profile/**")
        .addExcludedPath("/system/**")
        .addExcludedPath("/static/**")
        .addExcludedPath("/favicon.ico**")
        .addExcludedPath("/html/**")
        .addExcludedPath("/jeegit.png**")
        .addExcludedPath("/img/**")
        .addExcludedPath("/xtreme-admin/**")
        .addExcludedPath("/css/**")
        .addExcludedPath("/docs/**")
        .addExcludedPath("/fonts/**")
        .addExcludedPath("/ajax/**")
        .addExcludedPath("/index**/**")
        .addExcludedPath("/list**/**")
        .addExcludedPath("/view**/**")
        .addExcludedPath("/pay**/**")
        .addExcludedPath("/images/**")
        .addExcludedPath("/jeegit/**")
        .addExcludedPath("/logout**")
        .addExcludedPath("/login**")
        .addExcludedPath("/register**")
        .addExcludedPath("/tool/**")
        .addExcludedPath("/monitor/**")
        .addExcludedPath("/druid/**")
        .addExcludedPath("/tool/**")
        .addExcludedPath("/demo/**")
        .addExcludedPath("/ecms/**");
    }
}

